package com.ruoyi.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.user.mapper.CarCarinfoMapper;
import com.ruoyi.user.domain.CarCarinfo;
import com.ruoyi.user.service.ICarCarinfoService;

/**
 * 用户车辆Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-20
 */
@Service
public class CarCarinfoServiceImpl implements ICarCarinfoService 
{
    @Autowired
    private CarCarinfoMapper carCarinfoMapper;

    /**
     * 查询用户车辆
     * 
     * @param id 用户车辆主键
     * @return 用户车辆
     */
    @Override
    public CarCarinfo selectCarCarinfoById(Long id)
    {
        return carCarinfoMapper.selectCarCarinfoById(id);
    }

    /**
     * 查询用户车辆列表
     * 
     * @param carCarinfo 用户车辆
     * @return 用户车辆
     */
    @Override
    public List<CarCarinfo> selectCarCarinfoList(CarCarinfo carCarinfo)
    {
        return carCarinfoMapper.selectCarCarinfoList(carCarinfo);
    }

    /**
     * 新增用户车辆
     * 
     * @param carCarinfo 用户车辆
     * @return 结果
     */
    @Override
    public int insertCarCarinfo(CarCarinfo carCarinfo)
    {
        return carCarinfoMapper.insertCarCarinfo(carCarinfo);
    }

    /**
     * 修改用户车辆
     * 
     * @param carCarinfo 用户车辆
     * @return 结果
     */
    @Override
    public int updateCarCarinfo(CarCarinfo carCarinfo)
    {
        return carCarinfoMapper.updateCarCarinfo(carCarinfo);
    }

    /**
     * 批量删除用户车辆
     * 
     * @param ids 需要删除的用户车辆主键
     * @return 结果
     */
    @Override
    public int deleteCarCarinfoByIds(Long[] ids)
    {
        return carCarinfoMapper.deleteCarCarinfoByIds(ids);
    }

    /**
     * 删除用户车辆信息
     * 
     * @param id 用户车辆主键
     * @return 结果
     */
    @Override
    public int deleteCarCarinfoById(Long id)
    {
        return carCarinfoMapper.deleteCarCarinfoById(id);
    }
}
